package cn.itcast.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*
account就是目标对象，要被增强的对象
abcd是可以被增强的方法，称为连接点
比如只增强a，那么a就是切点
 */
public class Account {

    private Integer id;
    @NotBlank(message = "name不能为空")
    private String name;
    private Double money;
}